package com.hsav.kcxb.adapter.manager;

import android.view.View;
import android.widget.TextView;

import com.hsav.kcxb.R;
import com.hsav.kcxb.adapter.common.AbsListManager;
import com.hsav.kcxb.adapter.common.CommonViewHolder;
import com.hsav.kcxb.bean.FileBean;

import org.w3c.dom.Text;

import java.util.List;

/**
 * Created by zhao on 17-4-29.
 */

public class CloudManager extends AbsListManager {
    public CloudManager(List dataList, int layoutId) {
        super(dataList, layoutId);
    }

    @Override
    public void bindDataView(View convertView, Object item) {
        FileBean fileBean = (FileBean) item;
        TextView nameTx = (TextView) CommonViewHolder.get(convertView, R.id.tx_name);
        TextView dateTx = (TextView)CommonViewHolder.get(convertView,R.id.tx_date);
        TextView sizeTx = (TextView)CommonViewHolder.get(convertView,R.id.tx_size);
        TextView detialTx = (TextView)CommonViewHolder.get(convertView,R.id.tx_detail);

        nameTx.setText(fileBean.getFileName());
        dateTx.setText(fileBean.getDate());
        sizeTx.setText(fileBean.getSize()+"MB");
        detialTx.setText(fileBean.getDesc());
    }
}
